package mobi.hami.huapin.service.impl;

import mobi.hami.huapin.dao.SkuPictureMappingMapper;
import mobi.hami.huapin.model.SkuPictureMapping;
import mobi.hami.huapin.service.SkuPictureMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SkuPictureMappingImpl implements SkuPictureMappingService {
    @Autowired
    private SkuPictureMappingMapper skuPictureMappingMapper;
    @Override
    public   int  add(SkuPictureMapping model){

        return skuPictureMappingMapper.insert(model);
    }
    @Override
   public List<SkuPictureMapping>  selectImg(int skuid){  return skuPictureMappingMapper.selectImg(skuid);
   }
    @Override
    public  int falseDelete(int id){
        return skuPictureMappingMapper.falseDelete(id);
    }
    @Override
    public  int  update(SkuPictureMapping model)
    {
            return skuPictureMappingMapper.updateByPrimaryKeySelective(model);

    }
}
